-------------------------------------------------------------------------------
--  The Legend of Zelda : Oracle of Secrets
--  Copyright (C) 2010 Pixelua
--
--  This program is free software: you can redistribute it and/or modify
--  it under the terms of the GNU General Public License as published by
--  the Free Software Foundation, either version 3 of the License, or
--  (at your option) any later version.
--
--  This program is distributed in the hope that it will be useful,
--  but WITHOUT ANY WARRANTY; without even the implied warranty of
--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--  GNU General Public License for more details.
--
--  You should have received a copy of the GNU General Public License
--  along with this program.  If not, see <http://www.gnu.org/licenses/>.
-------------------------------------------------------------------------------

white = Sprite.new("img/Fonts/white.png", 8, 16, VRAM)
black = Sprite.new("img/Fonts/black.png", 8, 16, VRAM)
blue = Sprite.new("img/Fonts/blue.png", 8, 16, VRAM)
orange = Sprite.new("img/Fonts/orange.png", 8, 16, VRAM)

function screen_print(scr, x, y, str, font)
	for i = 1, #str do
		num = string.byte(str, i, i+1)
		if num >= 32 then font:drawFrame(scr, x+8*(i-1), y, num-29) end
	end
end